package com.lwg.vhr.controller.config;

import com.lwg.vhr.model.Menu;
import com.lwg.vhr.service.impl.MenuServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: lwg
 * @Date: 2021/7/25 21:05
 * @Description: 系统配置类
 */

@RestController
@RequestMapping("/system/config")
public class SysConfigController {

    @Autowired
    private MenuServiceImpl menuService;


    @RequestMapping("/menu")
    public List<Menu> getMenusByHrId() {
        return menuService.getMenusByHrId();
    }
}
